//
//  AddCarCell.m
//  Cycling
//
//  Created by chijianguo on 2023/3/13.
//

#import "AddCarCell.h"

@implementation AddCarCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {

    UIImageView *addView = [[UIImageView alloc] init];
    addView.image = [UIImage imageNamed:@"icon_mine_addcar"];
    [self.contentView addSubview:addView];
    [addView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView).offset(MARGIN_MAX);
        make.size.mas_equalTo(CGSizeMake(68, 68));
        make.centerX.mas_equalTo(self.contentView.mas_centerX);
    }];
    
    UILabel *titleLB = [[UILabel alloc] init];
    titleLB.text = CycLocalizedString(@"Add trike", @"添加车辆");
    titleLB.font = FONT_PRIMARY_TITLE;
    titleLB.textColor = COLOR_BLACK;
    [self.contentView addSubview:titleLB];
    [titleLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.mas_equalTo(30);
        make.centerX.mas_equalTo(self.contentView.mas_centerX);
        make.bottom.equalTo(self.contentView).offset(-MARGIN_MIDDLE);
    }];
    
}


@end
